﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface
{
    /// <summary>
    /// 羊场仓储接口
    /// </summary>
    public interface ISheepRepository
    {
        /// <summary>
        /// 获取所有羊场信息
        /// </summary>
        /// <returns></returns>
        Task<List<Sheepfactory>> SheepFactory();
        /// <summary>
        /// 羊场查询
        /// </summary>
        /// <param name="sheepFullName"></param>
        /// <param name="responsiblePerson"></param>
        /// <returns></returns>
        Task<List<Sheepfactory>> SheepFactoryList(string sheepFullName,string responsiblePerson);
        /// <summary>
        /// 添加羊场
        /// </summary>
        /// <param name="sheepfactory"></param>
        /// <returns></returns>
        Task<int> Add(Sheepfactory sheepfactory);
        /// <summary>
        /// 删除羊场
        /// </summary>
        /// <param name="sheepId"></param>
        /// <param name="idList"></param>
        /// <returns></returns>
        Task<int> Delete(int sheepId, params int[] idList);

        /// <summary>
        /// 修改羊场
        /// </summary>
        /// <param name="sheepfactory"></param>
        /// <returns></returns>
        Task<int> Update(Sheepfactory sheepfactory);

    /// <summary>
    /// 反填羊场
    /// </summary>
    /// <param name="sheepId"></param>
    /// <returns></returns>
        Task<Sheepfactory> GetSheep(int sheepId);


    }




}
